package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "plan_investment", schema = "xmgl", catalog = "huaneng-manage")
public class PlanInvestment  extends BaseModel implements Serializable {


    @ApiModelProperty(value = "投资计划ID")
    @TableField(value = "investment_plan_id", fill = FieldFill.INSERT)
    @TableId(type = IdType.ASSIGN_UUID)
    private String investmentPlanId;

    @ApiModelProperty(value = "投资计划代码")
    private String investmentPlanCode;

    @ApiModelProperty(value = "投资计划名称")
    private String investmentPlanName;

    @ApiModelProperty(value = "投资计划类型")
    private String investmentPlanType;

    @ApiModelProperty(value = "计划投资额")
    private Double planInvestment;

    @ApiModelProperty(value = "项目ID")
    private String projectId;

    @ApiModelProperty(value = "计划开始日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date planStartDate;

    @ApiModelProperty(value = "计划结束日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date planEndDate;


    @ApiModelProperty(value = "状态,0启用,1禁用")
    @TableField(value = "status")
    private String status;

}
